//
//  chatAudioPanel.h
//  BMHVideoMain
//
//  Created by mac on 2017/10/12.
//  Copyright © 2017年 BAOMIHUA.COM. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MyPttRecordBtn.h"
#import "MyVolumeMeter.h"
#import <AVFoundation/AVFoundation.h>
@interface ChatAudioRecords : NSObject

@property (nonatomic, strong)NSData* audioData;
@property (nonatomic, assign)NSUInteger duration;
@property (nonatomic, strong)NSString* filePath;

@end


@protocol ChatAudioInputDeletage <NSObject>

@optional
- (void)startRecord;
- (void)cancelRecord;
- (void)sendAudioRecord:(ChatAudioRecords*) audio;

@end

@interface chatAudioPanel : UIView <MyPttTouchDelegate, VolumeMeterDelegate,ChatInputAbleView>
{
    @protected    NSInteger   _contentHeight;
}
@property (nonatomic, assign) NSInteger contentHeight;

@property (nonatomic, weak) id<ChatInputAbleViewDelegate> chatDelegate;

@property (nonatomic, weak)id<ChatAudioInputDeletage>   delegate;
@property (nonatomic, assign)BOOL recordAuthority;
@end
